#!/usr/bin/env python3
# -*- coding:utf-8 -*-
###
# File: use_base64.py
# -----
# Description: 
# -----
# Created  By: Aim 2020-02-01 20:50:15
# Modified By: Aim 2020-02-02 00:05:11
# -----
# HISTORY:
# Date      	By	Comments
# ----------	---	----------------------------------------------------------
###

# import base64

# print(base64.b64encode(b'aim'))
# print(base64.b64decode(b'YmluYXJ5AHN0cmluZw=='))

import requests

# r = requests.get('https://baidu.com')
# print(r.text)

# r = requests.get('https://www.douban.com/search', params={'q': 'python', 'cat': '1001'})
# print(r.url)

r = requests.get('https://www.douban.com/', headers={'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit'})
print(r.text)